package com.wulis.provider.basic.mapper;

import java.util.List;

import com.wulis.provider.basic.model.entity.Organization;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wulis.common.support.BaseMapper;
import com.wulis.provider.basic.model.vo.QueryOrganizationListVo;
import com.wulis.provider.basic.model.vo.QueryOrganizationPageVo;
import com.wulis.provider.basic.model.vo.QueryOrganizationVo;

/**
 * 基础信息管理:组织机构表 Mapper
 *
 * @author WuliBao
 * @date 2020-05-21
 */
public interface OrganizationMapper extends BaseMapper<Organization> {
    
    /**
     * WEB:查询机构列表(分页)
     *
     * @param page page
     * @param organizationName organizationName
     * @param enable enable
     * @return IPage
     */
    IPage<QueryOrganizationPageVo> queryOrganizationPage(Page<QueryOrganizationPageVo> page,
        @Param("organizationName") String organizationName, @Param("enable") Integer enable);
    
    /**
     * WEB:查询机构列表(全量)
     *
     * @param enable enable
     * @return List
     */
    List<QueryOrganizationListVo> queryOrganizationList(@Param("enable") Integer enable);
    
    /**
     * WEB:查询机构信息
     *
     * @param id id
     * @return QueryOrganizationVo
     */
    QueryOrganizationVo queryOrganization(@Param("id") Long id);
}
